﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using GameEngine.View.Components;

namespace SilverlightClientEngine.View.Components
{
    public partial class MapZoom : UserControl, IMapZoom<int, FrameworkElement>
    {
        public event Action<double> OnMapZoom;

        public MapZoom()
        {
            InitializeComponent();
        }

        private void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        {
            if (MapZoomSlider != null) {
                OnMapZoom(MapZoomSlider.Value);
            }
        }
    }
}
